package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import com.asiainfo.ysrman.doprocess.*;
import com.asiainfo.ysrman.Beans.*;
import java.util.*;

public final class p_005fawardlist_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static java.util.Vector _jspx_dependants;

  public java.util.List getDependants() {
    return _jspx_dependants;
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    JspFactory _jspxFactory = null;
    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html; charset=GBK");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
 
	ArrayList al = new ArrayList();
    String mobile = "0";
    String via = "2";
    if ( request.getParameter("mobile") != null )
	{	   
	    mobile = request.getParameter("mobile").toString();	   
	    via = request.getParameter("via").toString();	   
	    
		if ( mobile != null && !mobile.equals("") )		
			al =  new YsrProcess().getUserAward(mobile);  
		else
			al = null;
	}
	else
		al = null;
   

      out.write("\r\n");
      out.write("\r\n");
      out.write("<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n");
      out.write("<head>\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\" />\r\n");
      out.write("<title>伊利优酸乳活动网站</title>\r\n");
      out.write("<link href=\"styles/css.css\" rel=\"stylesheet\" type=\"text/css\">\r\n");
      out.write("\r\n");
      out.write("<script language=\"JavaScript\" src=\"script/date1.js\"></script>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<script language=\"javascript\">\r\n");
      out.write("function isNumeric(strNumber)\r\n");
      out.write("{\r\n");
      out.write("\t//return (strNumber.search(/^(-|\\+)?\\d+(\\.\\d+)?$/));\r\n");
      out.write("\treturn (strNumber.search(/^(|)?\\d+(\\d+)?$/));\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function onCheckMobile()\r\n");
      out.write("{\t  \r\n");
      out.write("\tif(Form1.mobile.value.length!=11||isNumeric(Form1.mobile.value)==-1)\r\n");
      out.write("\t{\r\n");
      out.write("\t\talert(\"您填写的手机号格式不正确，请检查。\");\r\n");
      out.write("\t\tForm1.mobile.focus();\r\n");
      out.write("\t\treturn false;\r\n");
      out.write("\t}\r\n");
      out.write("\telse\r\n");
      out.write("\t\tForm1.submit();\r\n");
      out.write("}\r\n");
      out.write("</script>\r\n");
      out.write("</head>\r\n");
      out.write("\r\n");
      out.write("<body bgcolor=\"#006600\" leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">\r\n");
      out.write("<table width=\"800\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#77B900\">\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td><table width=\"100\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("        <tr> \r\n");
      out.write("          <td><img src=\"img/top.jpg\" width=\"800\" height=\"242\"></td>\r\n");
      out.write("        </tr>\r\n");
      out.write("      </table>\r\n");
      out.write("      <table width=\"800\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("        <tr> \r\n");
      out.write("          <td width=\"10\" background=\"img/bg1.jpg\"><img src=\"img/bg1.jpg\" width=\"9\" height=\"29\"></td>\r\n");
      out.write("          <td width=\"790\" background=\"img/bg1.jpg\"><font color=\"#FFFFFF\">你现在的位置──活动专区 \r\n");
      out.write("            </font></td>\r\n");
      out.write("        </tr>\r\n");
      out.write("       <tr> \r\n");
      out.write("          <td width=\"10\" background=\"img/bg2.jpg\"><img src=\"img/bg2.jpg\" width=\"9\" height=\"46\"></td>\r\n");
      out.write("          <td background=\"img/bg2.jpg\">\r\n");
      out.write("          <strong><a href=\"ub.jsp\">“优币”礼上礼活动介绍</a></strong><font color=\"#000000\">|</font>\r\n");
      out.write("          <strong><a href=\"ub_list.jsp\">查询优币数量</a></strong><font color=\"#000000\">|</font>\r\n");
      out.write("          <strong><a href=\"ub_change.jsp\">优币兑奖</a></strong><font color=\"#000000\">|</font>\r\n");
      out.write("          <a href=\"p_awardlist.jsp?mobile=");
      out.print(mobile);
      out.write("&via=");
      out.print(via );
      out.write("\"><strong>查询中奖记录 </strong></a><font color=\"#000000\">|</font> \r\n");
      out.write("            <a href=\"p_mobile.jsp?mobile=");
      out.print(mobile);
      out.write("&muFlah=");
      out.print(via );
      out.write("\"><strong>炫彩专区</strong></a><font color=\"#000000\">|</font> \r\n");
      out.write("            <a href=\"p_changepass.jsp?mobile=");
      out.print(mobile);
      out.write("&via=");
      out.print(via );
      out.write("\"><strong>修改密码</strong></a><font color=\"#000000\">|</font>\r\n");
      out.write("            <a href=\"p_help.jsp?mobile=");
      out.print(mobile);
      out.write("&via=");
      out.print(via );
      out.write("\"><strong>帮助</a></strong>\r\n");
      out.write("          \r\n");
      out.write("         </td>\r\n");
      out.write("        </tr>\r\n");
      out.write("      </table>\r\n");
      out.write("      <table width=\"800\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("        <tr> \r\n");
      out.write("          <td align=\"left\"><img src=\"img/m1.jpg\" width=\"185\" height=\"57\"></td>\r\n");
      out.write("        </tr>\r\n");
      out.write("      </table>\r\n");
      out.write("      <table width=\"751\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("        <tr> \r\n");
      out.write("          <td width=\"12\"><img src=\"img/b1_r1_c1.jpg\" width=\"12\" height=\"36\"></td>\r\n");
      out.write("          <td width=\"777\" background=\"img/b1_r1_c3.jpg\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
      out.write("              <tr align=\"center\"> \r\n");
      out.write("                <td width=\"32%\"><strong>奖项</strong></td>\r\n");
      out.write("                <td width=\"34%\"><strong>奖品</strong></td>\r\n");
      out.write("                <td width=\"34%\"><strong>中奖时间</strong></td>\r\n");
      out.write("              </tr>\r\n");
      out.write("            </table></td>\r\n");
      out.write("          <td width=\"9\"><img src=\"img/b1_r1_c6.jpg\" width=\"9\" height=\"36\"></td>\r\n");
      out.write("        </tr>\r\n");
      out.write("        <tr bgcolor=\"#FFFFCC\"> \r\n");
      out.write("          <td colspan=\"3\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
      out.write("              \r\n");
      out.write("            ");

            if (al != null)
            {
            	int i;            	
            	UserInfo userinfo = new UserInfo();
            	for (i=0;i<al.size();i++)
            	{            		
            		userinfo = (UserInfo)al.get(i);	
            		
            
      out.write("\r\n");
      out.write("            ");
if (i%2==0)
                 out.println("<tr align=\"center\">"); 
              else 
                 out.println("<tr align=\"center\" bgcolor=\"#CCFF99\">");  
            
            out.println("<td width=\"34%\">" + userinfo.getAType() + "</td>"); 
            out.println("<td width=\"31%\">" + userinfo.getAName() + "</td>"); 
            out.println("<td width=\"35%\">" + userinfo.getRedate() +"</td>"); 
            out.println("</tr>");		           
            
            	}
            }
            
      out.write("    \r\n");
      out.write("             \r\n");
      out.write("              \r\n");
      out.write("            </table></td>\r\n");
      out.write("        </tr>\r\n");
      out.write("        <tr> \r\n");
      out.write("          <td><img src=\"img/b1_r3_c1.jpg\" width=\"12\" height=\"11\"></td>\r\n");
      out.write("          <td background=\"img/b1_r3_c7.jpg\"><img src=\"img/b1_r3_c7.jpg\" width=\"730\" height=\"11\"></td>\r\n");
      out.write("          <td><img src=\"img/b1_r3_c6.jpg\" width=\"9\" height=\"11\"></td>\r\n");
      out.write("        </tr>\r\n");
      out.write("      </table>\r\n");
      out.write("      <table width=\"751\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("        <tr> \r\n");
      out.write("          <td>&nbsp;</td>\r\n");
      out.write("        </tr>\r\n");
      out.write("      </table>\r\n");
      out.write("      \r\n");
      out.write("      <table width=\"751\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("        <tr> \r\n");
      out.write("          <td>&nbsp;</td>\r\n");
      out.write("        </tr>\r\n");
      out.write("      </table>\r\n");
      out.write("</td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\r\n");
      out.write("\r\n");
      out.write("<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
      out.write("    <tr>\r\n");
      out.write("      <td align=center><font color=\"#FFFFFF\">版权所有：内蒙古伊利实业集团股份有限公司 蒙ICP备2-4-32002036</font> </td>\r\n");
      out.write("    </tr>\r\n");
      out.write("</table>\r\n");
      out.write("</body>\r\n");
      out.write("</html>\r\n");
      out.write("\r\n");
      out.write("\t\r\n");
      out.write("\t\r\n");
      out.write("\t\r\n");
      out.write("\t\r\n");
      out.write("\t \r\n");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}
